package ads_config

import (
	"server/global"
)

type AdsConfig struct {
	global.BaseModel
	TopicId int `json:"topicId" form:"topicId" gorm:"column:topicId;comment:数据服务主题id;size:50;"`

	Name string `json:"name" form:"name" gorm:"column:name;comment:接口名称;size:50;"`
	Code string `json:"code" form:"code" gorm:"column:code;comment:接口编码;size:50;"`

	ApiType     string `json:"apiType" form:"apiType" gorm:"column:apiType;comment:接口类型;size:50;"`
	RequestType string `json:"requestType" form:"requestType" gorm:"column:requestType;comment:请求方式;size:50;"`

	Status *bool  `json:"status" form:"status" gorm:"column:status;comment:状态（0不启用，1启用）;"`
	Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:备注;size:1000;"`

	CreatedBy uint `gorm:"column:created_by;comment:创建者"`
	UpdatedBy uint `gorm:"column:updated_by;comment:更新者"`
	DeletedBy uint `gorm:"column:deleted_by;comment:删除者"`
}

func (AdsConfig) TableName() string {
	return "ads_config"
}
